package com.xinyu.vo;

import lombok.Data;

@Data
public class LoginResult extends BaseResult {

    private Integer userId;
    private String realname;
    private Integer isAdmin;
    private Integer role;

    public LoginResult(Object data, Integer userId, String realname) {
        super(1,"登录成功", data);
        this.userId = userId;
        this.realname = realname;
    }

    public LoginResult(Object data, Integer userId, String realname,Integer isAdmin,Integer role) {
        super(1,"登录成功", data);
        this.userId = userId;
        this.realname = realname;
        this.isAdmin = isAdmin;
        this.role = role;
    }

    public LoginResult(Integer code, String msg) {
        super(code, msg);
    }
}
